<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>1101: Tools.AspxToHtml类参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.7.2 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>组合类型列表</span></a></li>
      <li><a href="classes.html"><span>组合类型索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>组合类型成员</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespace_tools.html">Tools</a>      </li>
      <li><a class="el" href="class_tools_1_1_aspx_to_html.html">AspxToHtml</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">公有成员</a> &#124;
<a href="#properties">属性</a>  </div>
  <div class="headertitle">
<h1>Tools.AspxToHtml类参考</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Tools::AspxToHtml" -->
<p><a class="el" href="class_tools_1_1_aspx_to_html.html" title="AspxToHtml 的摘要说明。 注:使用此类,你可以在web.config文件对模板类进行配置.如下 /*&lt;appSettings&gt; &lt;add key=&quot;template...">AspxToHtml</a> 的摘要说明。 注:使用此类,你可以在web.config文件对模板类进行配置.如下 /*&lt;appSettings&gt; &lt;add key="templateFilePath" value="htmlmoudel.htm"&gt; &lt;add key="htmlFilePath" value="new/"&gt;&lt;/add&gt; &lt;add key="ErrLogPath" value="aspxTohtml_log.txt"&gt;&lt;/add&gt; &lt;/appSettings&gt;  
<a href="#_details">更多...</a></p>

<p><a href="class_tools_1_1_aspx_to_html-members.html">所有成员的列表。</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
公有成员</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a8b12bdf18760ef56fb5210bc7ca037e0">setTemplateFileparameter</a> (string[] param)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">为HTML页面参数数组付值  <a href="#a8b12bdf18760ef56fb5210bc7ca037e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a970fb0290c06447eb5073af8c7d72769">setAspxFileparameter</a> (string[] param)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">为aspx文件中将要替换html文件中的参数数组付值  <a href="#a970fb0290c06447eb5073af8c7d72769"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a002093e12b6b6b240f428a533ba8d571">StartConvert</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">开始进行aspxTohtml转换  <a href="#a002093e12b6b6b240f428a533ba8d571"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#aaa641548dea0a1b07ee2667199c7524d">StartConvert</a> (string[] htmlparam, string[] aspxparam)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">开始进行aspxTohtml转换  <a href="#aaa641548dea0a1b07ee2667199c7524d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a53757524c3e8d41fd9140573d49bf639">getUrltoHtml</a> (string Url)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">传入URL返回网页的html代码  <a href="#a53757524c3e8d41fd9140573d49bf639"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#abac0ffe161ddea8ca594e0dc719b8d5b">AspxToHtml</a> (int templateParamCount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">提供欲代替的参数个数  <a href="#abac0ffe161ddea8ca594e0dc719b8d5b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#ae59ad0bc10c998bdd543c5c5e08cd616">AspxToHtml</a> (int templateParamCount, string htmlFilePath, string templateFilePath)</td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
属性</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a3da76856601f3e93b48aedf082a0512c">TemplateParamCount</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">模板文件中要替代的参数个数  <a href="#a3da76856601f3e93b48aedf082a0512c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a78b384e93a72e0dca4fe709b443670ba">TemplateFilePath</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">模板文件所在的路径  <a href="#a78b384e93a72e0dca4fe709b443670ba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a36ccfd1504ec51ed043536dc3668d416">HtmlFilePath</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">转换后的html文件所存放的路径  <a href="#a36ccfd1504ec51ed043536dc3668d416"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Encoding&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a38b7b621ab8d0f216e243c16b17641a4">TemplateHtmlCode</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">html模板文件编码  <a href="#a38b7b621ab8d0f216e243c16b17641a4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Encoding&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a440a6869c08692ec75e451227f0b9479">Code</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">编码  <a href="#a440a6869c08692ec75e451227f0b9479"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a8d7963fca99f0fe6211bb74330427d4c">ErrLogPath</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">错误文件所在路径  <a href="#a8d7963fca99f0fe6211bb74330427d4c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_aspx_to_html.html#a19915ff7d8fea978297fd18360889e9f">HtmlFileVirtualPath</a><code> [get]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">获取转换后的html文件所在相对文件路径 如：如果HtmlFilePath="/news/" 转换后的html文件名为200505050505.html 则返回的值为/news/200505050505.html  <a href="#a19915ff7d8fea978297fd18360889e9f"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>详细描述</h2>
<p><a class="el" href="class_tools_1_1_aspx_to_html.html" title="AspxToHtml 的摘要说明。 注:使用此类,你可以在web.config文件对模板类进行配置.如下 /*&lt;appSettings&gt; &lt;add key=&quot;template...">AspxToHtml</a> 的摘要说明。 注:使用此类,你可以在web.config文件对模板类进行配置.如下 /*&lt;appSettings&gt; &lt;add key="templateFilePath" value="htmlmoudel.htm"&gt; &lt;add key="htmlFilePath" value="new/"&gt;&lt;/add&gt; &lt;add key="ErrLogPath" value="aspxTohtml_log.txt"&gt;&lt;/add&gt; &lt;/appSettings&gt; </p>
<hr/><h2>构造及析构函数文档</h2>
<a class="anchor" id="abac0ffe161ddea8ca594e0dc719b8d5b"></a><!-- doxytag: member="Tools::AspxToHtml::AspxToHtml" ref="abac0ffe161ddea8ca594e0dc719b8d5b" args="(int templateParamCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Tools.AspxToHtml.AspxToHtml </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>templateParamCount</em>&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>提供欲代替的参数个数 </p>

</div>
</div>
<a class="anchor" id="ae59ad0bc10c998bdd543c5c5e08cd616"></a><!-- doxytag: member="Tools::AspxToHtml::AspxToHtml" ref="ae59ad0bc10c998bdd543c5c5e08cd616" args="(int templateParamCount, string htmlFilePath, string templateFilePath)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Tools.AspxToHtml.AspxToHtml </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>templateParamCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>htmlFilePath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>templateFilePath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>html模板页中的参数个数</p>
<p>生成的html文件所存放的文件夹路径</p>
<p>html模板页路径</p>

</div>
</div>
<hr/><h2>成员函数文档</h2>
<a class="anchor" id="a53757524c3e8d41fd9140573d49bf639"></a><!-- doxytag: member="Tools::AspxToHtml::getUrltoHtml" ref="a53757524c3e8d41fd9140573d49bf639" args="(string Url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string Tools.AspxToHtml.getUrltoHtml </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>Url</em>&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>传入URL返回网页的html代码 </p>
<p>URL</p>
<dl class="return"><dt><b>返回:</b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a970fb0290c06447eb5073af8c7d72769"></a><!-- doxytag: member="Tools::AspxToHtml::setAspxFileparameter" ref="a970fb0290c06447eb5073af8c7d72769" args="(string[] param)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Tools.AspxToHtml.setAspxFileparameter </td>
          <td>(</td>
          <td class="paramtype">string[]&#160;</td>
          <td class="paramname"> <em>param</em>&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>为aspx文件中将要替换html文件中的参数数组付值 </p>

</div>
</div>
<a class="anchor" id="a8b12bdf18760ef56fb5210bc7ca037e0"></a><!-- doxytag: member="Tools::AspxToHtml::setTemplateFileparameter" ref="a8b12bdf18760ef56fb5210bc7ca037e0" args="(string[] param)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Tools.AspxToHtml.setTemplateFileparameter </td>
          <td>(</td>
          <td class="paramtype">string[]&#160;</td>
          <td class="paramname"> <em>param</em>&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>为HTML页面参数数组付值 </p>

</div>
</div>
<a class="anchor" id="a002093e12b6b6b240f428a533ba8d571"></a><!-- doxytag: member="Tools::AspxToHtml::StartConvert" ref="a002093e12b6b6b240f428a533ba8d571" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string Tools.AspxToHtml.StartConvert </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>开始进行aspxTohtml转换 </p>
<dl class="return"><dt><b>返回:</b></dt><dd>返回值为成功创建后的文件名称</dd></dl>
<p>在调用此方法之前必需确定已调用setTemplateFileparameter 和setAspxFileparameter方法进行相应的付值操作 </p>

</div>
</div>
<a class="anchor" id="aaa641548dea0a1b07ee2667199c7524d"></a><!-- doxytag: member="Tools::AspxToHtml::StartConvert" ref="aaa641548dea0a1b07ee2667199c7524d" args="(string[] htmlparam, string[] aspxparam)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string Tools.AspxToHtml.StartConvert </td>
          <td>(</td>
          <td class="paramtype">string[]&#160;</td>
          <td class="paramname"> <em>htmlparam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string[]&#160;</td>
          <td class="paramname"> <em>aspxparam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>开始进行aspxTohtml转换 </p>
<p>html模板页中的所有参数数组</p>
<p>aspx页面中要代替html模板页中参数值数组</p>
<dl class="return"><dt><b>返回:</b></dt><dd>返回值为成功创建后的文件名称</dd></dl>

</div>
</div>
<hr/><h2>属性文档</h2>
<a class="anchor" id="a440a6869c08692ec75e451227f0b9479"></a><!-- doxytag: member="Tools::AspxToHtml::Code" ref="a440a6869c08692ec75e451227f0b9479" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Encoding Tools.AspxToHtml.Code<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>编码 </p>

</div>
</div>
<a class="anchor" id="a8d7963fca99f0fe6211bb74330427d4c"></a><!-- doxytag: member="Tools::AspxToHtml::ErrLogPath" ref="a8d7963fca99f0fe6211bb74330427d4c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string Tools.AspxToHtml.ErrLogPath<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>错误文件所在路径 </p>

</div>
</div>
<a class="anchor" id="a36ccfd1504ec51ed043536dc3668d416"></a><!-- doxytag: member="Tools::AspxToHtml::HtmlFilePath" ref="a36ccfd1504ec51ed043536dc3668d416" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string Tools.AspxToHtml.HtmlFilePath<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>转换后的html文件所存放的路径 </p>

</div>
</div>
<a class="anchor" id="a19915ff7d8fea978297fd18360889e9f"></a><!-- doxytag: member="Tools::AspxToHtml::HtmlFileVirtualPath" ref="a19915ff7d8fea978297fd18360889e9f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string Tools.AspxToHtml.HtmlFileVirtualPath<code> [get]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>获取转换后的html文件所在相对文件路径 如：如果HtmlFilePath="/news/" 转换后的html文件名为200505050505.html 则返回的值为/news/200505050505.html </p>
<p>如果在未调用StartConvert方法之前调用此属性则返回null </p>

</div>
</div>
<a class="anchor" id="a78b384e93a72e0dca4fe709b443670ba"></a><!-- doxytag: member="Tools::AspxToHtml::TemplateFilePath" ref="a78b384e93a72e0dca4fe709b443670ba" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string Tools.AspxToHtml.TemplateFilePath<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>模板文件所在的路径 </p>

</div>
</div>
<a class="anchor" id="a38b7b621ab8d0f216e243c16b17641a4"></a><!-- doxytag: member="Tools::AspxToHtml::TemplateHtmlCode" ref="a38b7b621ab8d0f216e243c16b17641a4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Encoding Tools.AspxToHtml.TemplateHtmlCode<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>html模板文件编码 </p>

</div>
</div>
<a class="anchor" id="a3da76856601f3e93b48aedf082a0512c"></a><!-- doxytag: member="Tools::AspxToHtml::TemplateParamCount" ref="a3da76856601f3e93b48aedf082a0512c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Tools.AspxToHtml.TemplateParamCount<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>模板文件中要替代的参数个数 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成：<ul>
<li>D:/Project/1101/Tools/AspxToHtmlHelper.cs</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>名字空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>属性</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated at Sun Apr 10 2011 19:47:50 for 1101 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
